using System;

namespace uShareReal
{
	
	public partial class CertificateDialog : Gtk.Dialog
	{
		
		public bool DontAskForThis
		{
			get { return checkbutton1.Active; }
		}
		
		public bool AutoAcceptForAll
		{
			get { return checkbutton2.Active; }
		}
		
		public CertificateDialog (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
		{
			this.Build ();
			
			label13.LabelProp = certificate.Issuer;
			label16.LabelProp = certificate.GetSerialNumberString();
			label20.LabelProp = certificate.GetEffectiveDateString();
			label21.LabelProp = certificate.GetExpirationDateString();
			label12.LabelProp = certificate.GetCertHashString();
			
		}
		
	}
	
}

